package com.aomr.controller;


import com.aomr.entity.Stu;
import com.aomr.service.IStuService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aomr
 * @since 2020-05-21
 */
@RestController
@RequestMapping("${api}/stu")
public class StuController {

    @Autowired
    private IStuService stuService;


    @GetMapping
    private List<Stu>  list(Stu stu){
        return stuService.list(new QueryWrapper<>(stu));
    }

}
